import request from '@/utils/request'

/**
 * 库存列表
 * @param {*} params
 * @returns
 */
export function getProductInventoryList(params) {
  return request({
    url: '/api/app/product-inventory/product-inventory-list',
    method: 'get',
    baseURL: public_config.labor_api,
    params
  })
}
/**
 * 库存列表
 * @param {*} params
 * @returns
 */
export function getAddProductInventoryList(params) {
  return request({
    url: '/api/app/product-inventory/add-product-inventory-list',
    method: 'get',
    baseURL: public_config.labor_api,
    params
  })
}

/**
 * 库存调整
 * @param {*} data
 * @returns
 */
export function UpdateProductInventory(data) {
  return request({
    url: '/api/app/product-inventory/product-inventory',
    method: 'put',
    baseURL: public_config.labor_api,
    data
  })
}
